package com.geek.zookeeper.connect;

import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;

import java.io.IOException;

public abstract class Connect {

	public static final String CONNECT_URL = "127.0.0.1:2181";

	public static final Integer CONNECT_TIMEOUT = 30000;

	public abstract ZooKeeper init() throws IOException, InterruptedException;

	public abstract void deleteData() throws InterruptedException, KeeperException;

	public abstract void createData() throws IOException, InterruptedException, KeeperException;

	public abstract void readData() throws IOException, InterruptedException, KeeperException;

}
